package com.recycle.system.domain.vo;

import com.recycle.common.annotation.Excel;
import com.recycle.system.domain.Order;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class ExtendOrder extends Order {

    /** 预计收益 */
    @Excel(name = "预计收益")
    private BigDecimal preIncome;

    /** 实际收益 */
    @Excel(name = "实际收益")
    private BigDecimal actualIncome;

    /** 实际/预计百分比 */
    @Excel(name = "实际/预计百分比")
    private BigDecimal percentage;

    public void  negate(){
        actualIncome = actualIncome.negate();
    }
}
